/**
 * 
 */

/**

 *
 */
public class ConfigurationHandler {

	public void SetBooleanTrue(String sVariableName) throws ConfigurationHandlerException {
		ValidateName(sVariableName);

		// Lookup name
		// If exist, re-use
		// Otherwise create new.
	} // end SetBooleanTrue

	/**
	 * Validate that the Variable name conforms to the naming requirements.
	 * 
	 * @param sVariableName
	 *            -- Name of variable.
	 * 
	 * TODO V Should it also fail if the following is false: [0-9]|[A-Z]|[a-z]|_|- 
	 * @throws ConfigurationHandlerException 
	 * 
	 */
	// TODO V Make this private when UT have been converted to Groovy.
	public void ValidateName(String sVariableName) throws ConfigurationHandlerException {
		if ( sVariableName == null) {
			throw new ConfigurationHandlerException("VariableName is a null pointer.");
		}
		if ( sVariableName.isEmpty()) {
			throw new ConfigurationHandlerException("VariableName is empty.");
		}
		
	} // end ValidateName.
}

class ConfigurationHandlerException extends Exception {
	private static final long serialVersionUID = 1L;

	public ConfigurationHandlerException() {
	}

	public ConfigurationHandlerException(String msg) {
		super(msg);
	}
}
